import request from "../request";

export const getAdminList = ()=>request.get("/adminList");

// 添加管理员
export const postAdmin = (body)=>request.post("/admin",body);

// 调用登陆
export const postLogin = (body)=>request.post("/login",body);

// 根据ID删除管理员
export const deleteAdmin = id=>request.delete("/admin/"+id);